import {NgModule} from '@angular/core';
import {BrowserAnimationsModule} from "@angular/platform-browser/animations";
import {RouterModule, Routes} from "@angular/router";
import {LayoutRootComponent} from "../../projects/geminis-ng-manage/src/layout/root/layout-root.component";
import {LayoutManageComponent} from "../../projects/geminis-ng-manage/src/layout/manage/layout-manage.component";
import {LayoutManageModule} from "../../projects/geminis-ng-manage/src/layout/layout-manage.module";
import {AdministratorListComponent} from "../../projects/geminis-ng-manage/src/administrator/list/administrator-list.component";
import {RoleListComponent} from "../../projects/geminis-ng-manage/src/role/list/role-list.component";
import {LoginComponent} from "../../projects/geminis-ng-manage/src/login/login.component";
import {AdministratorModule} from "../../projects/geminis-ng-manage/src/administrator/administrator.module";
import {RoleModule} from "../../projects/geminis-ng-manage/src/role/role.module";
import {LoginModule} from "../../projects/geminis-ng-manage/src/login/login.module";

const routes: Routes = [
  {
    path: 'main', component: LayoutManageComponent,
    children: [
      {path: 'administrator', component: AdministratorListComponent},
      {path: 'role', component: RoleListComponent}
    ]
  },
  {path: '', component: LoginComponent},
];

@NgModule({
  declarations: [],
  imports: [
    RouterModule.forRoot(routes),
    BrowserAnimationsModule,

    LayoutManageModule,
    AdministratorModule,
    RoleModule,
    LoginModule
  ],
  providers: [],
  bootstrap: [LayoutRootComponent]
})
export class AppModule {
}
